import request from '@/utils/request'

// 查询投档线列表
export function listTdx(query) {
  return request({
    url: '/school/tdx/list',
    method: 'get',
    params: query
  })
}

// 查询投档线详细
export function getTdx(id) {
  return request({
    url: '/school/tdx/' + id,
    method: 'get'
  })
}

// 新增投档线
export function addTdx(data) {
  return request({
    url: '/school/tdx',
    method: 'post',
    data: data
  })
}

// 修改投档线
export function updateTdx(data) {
  return request({
    url: '/school/tdx',
    method: 'put',
    data: data
  })
}

// 删除投档线
export function delTdx(id) {
  return request({
    url: '/school/tdx/' + id,
    method: 'delete'
  })
}
